package com.guxingke.typecho4j.widget.provider;

import java.util.List;

import com.guxingke.typecho4j.jfinal.model.Meta;

/**
 * 抽象项目组件
 * 
 * @author guxingke
 * */
public abstract class MetaBaseWidget extends ProviderWidget {

	public List<Meta> getCategories() {
		return Meta.dao.getCategories();
	}

	protected List<Meta> getTags() {
		return Meta.dao.getTags();
	}

	protected void mergeCategory(Long mid, Long merge) {
		Meta.dao.mergetCategory(mid, merge);
	}

	protected void deleteCategory(Long mid) {
		Meta.dao.deleteById(mid);
	}
}
